import Cookies from 'js-cookie';

const TokenKey = 'Video-Moderation-Token'

const MemberIdKey = 'Video-Moderation-Member-Id'

const MemberNumKey = 'Video-Moderation-Member-Num'

export function setToken(token) {
    return Cookies.set(TokenKey, token, { expires: 7 })
}

export function getToken() {
    return Cookies.get(TokenKey)
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}

export function setMemberId(memberId) {
    return Cookies.set(MemberIdKey, memberId, { expires: 7 })
}

export function getMemberId() {
    return Cookies.get(MemberIdKey)
}

export function removeMemberId() {
    return Cookies.remove(MemberIdKey)
}

export function setMemberNum(memberNum) {
    return Cookies.set(MemberNumKey, memberNum, { expires: 7 })
}

export function getMemberNum() {
    return Cookies.get(MemberNumKey)
}

export function removeMemberNum() {
    return Cookies.remove(MemberNumKey)
}